<?php

use yii\db\Migration;

/**
 * Class m180114_091145_alert_application_result_table
 */
class m180114_091145_alert_application_result_table extends Migration
{
    /**
     * @inheritdoc
     */
    public function safeUp()
    {
        $this->addColumn('application_result', 'user_id', $this->smallInteger()->defaultValue(0)->comment('审批人id'));
    }

    /**
     * @inheritdoc
     */
    public function safeDown()
    {
        echo "m180114_091145_alert_application_result_table cannot be reverted.\n";

        return false;
    }

    /*
    // Use up()/down() to run migration code without a transaction.
    public function up()
    {

    }

    public function down()
    {
        echo "m180114_091145_alert_application_result_table cannot be reverted.\n";

        return false;
    }
    */
}
